<?php
include('../../inc/global.inc');
include("../islogin.php");
?>
<?php
if($_POST['xg_act']){
mysql_query("update tel set shuoming='$_POST[shuoming]',is_cl='$_POST[is_cl]' where id='".$_POST['iid']."'");
echo "<script>alert('修改成功');location='".$_POST['urls']."'</script>";
}
?>
<HTML>
<HEAD>
<TITLE>Admin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
</HEAD>
<BODY>
<center>
<table width="700" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <tr>
      <td height="25" bgcolor="#EEEEF9" style="padding-left:5px;">400电话处理订单&nbsp;&nbsp;<a href="javascript:history.go(-1)">返回</a></td>
    </tr>
  </table>
<?php
  $row=mysql_fetch_array(mysql_query("select * from tel where id='".$_GET['xg_id']."'"));
?>
<table width="700" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#000000" >
<form action="" method="post" name="form1">
	<tr align='center' bgcolor='#D8EAF4'>
	  <td height="35" colspan="2" valign="middle" nowrap bgcolor="#8DA8CF">400电话处理订单信息</td>
	</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td width="119" align="center" bgcolor="#8DA8CF">账号</td>
  <td width="562" align="left" bgcolor="#FFFFFF" style="padding-left:5px">
  <?php if($row[member_id]){
   $m_rs=@mysql_query("select m_user from member where id='".$row['member_id']."'");
   $m_row=@mysql_fetch_array($m_rs);
   echo $m_row[m_user];
   }else{
   echo "非会员提交";
   }?></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td height="24" align="center" bgcolor="#8DA8CF">联系人</td>
  <td align="left" bgcolor="#FFFFFF" style="padding-left:5px"><?=$row['m_people']?></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td width="119" align="center" bgcolor="#8DA8CF">联系电话</td>
  <td width="562" align="left" bgcolor="#FFFFFF" style="padding-left:5px"><?=$row['m_tel']?></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td height="24" align="center" bgcolor="#8DA8CF">联系手机</td>
  <td align="left" bgcolor="#FFFFFF" style="padding-left:5px"><?=$row['m_phone']?></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td width="119" align="center" bgcolor="#8DA8CF">QQ(MSN)</td>
  <td width="562" align="left" bgcolor="#FFFFFF" style="padding-left:5px"><?=$row['m_qq']?></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td height="24" align="center" bgcolor="#8DA8CF">备注</td>
  <td align="left" bgcolor="#FFFFFF" style="padding-left:5px"><textarea name="shuoming" cols="60" rows="6"><?=$row['shuoming']?></textarea></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td width="119" align="center" bgcolor="#8DA8CF">申请时间</td>
  <td width="562" align="left" bgcolor="#FFFFFF" style="padding-left:5px"><?=$row['add_time']?></td>
</tr>
<tr align='center' bgcolor='#FFFFFF'>
  <td align="center" bgcolor="#8DA8CF">是否处理</td>
  <td align="left" bgcolor="#FFFFFF" style="padding-left:5px"><input name="is_cl" type="radio" value="1" <?php if($row['is_cl']==1){echo "checked";}?>>是<input name="is_cl" type="radio" value="0" <?php if($row['is_cl']==0){echo "checked";}?>>否</td>
</tr><input type="hidden" name="iid" value="<?=$row['id']?>">
  <tr align='center' bgcolor='#FFFFFF'><input type="hidden" name="xg_act" value="ok"><input type="hidden" name="urls" value="<?=$url?>">
  <td colspan="2"><input type="submit" value="修改"></td>
  </tr>
  </form>
</table>
</center>
</BODY>
</HTML>

